package mmc.server.shell.ops.baseops;

import mmc.server.shell.ShellException;
import mmc.server.shell.ops.LeftAssociativeOperation;
import mmc.server.shell.ops.PriorityType;

public class Division extends LeftAssociativeOperation {

    public Division(String text) throws ShellException {
        super(text, "/", true, true);
    }

    @Override
    public double execute() {
        return lValue.execute() / rValue.execute();
    }
    
    public static PriorityType getPriorityType() {
        return PriorityType.POINT;
    }
    
    public static String getDescription(){
    	return formatHelpString("/","division");
    }
}
